package dbobjects;

import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DatabaseObject;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 12.12.2008
 * Time: 14:14:23
 */
@DOTable(table = "db_complex_object", pk = "id")
public class DBComplexObject extends DatabaseObject {
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "db_object_id")
    private Integer objectId;
    @DOField(column = "complex_object_id")
    private Integer complexObjectId;

    public DBComplexObject() {
        this.id = UNASSIGNEDINT;
        this.objectId = UNASSIGNEDINT;
        this.complexObjectId = UNASSIGNEDINT;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getObjectId() {
        return objectId;
    }

    public void setObjectId(Integer objectId) {
        this.objectId = objectId;
    }

    public Integer getComplexObjectId() {
        return complexObjectId;
    }

    public void setComplexObjectId(Integer complexObjectId) {
        this.complexObjectId = complexObjectId;
    }
}
